package cn.xuchunh.campusbbs.web;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.webkit.JavascriptInterface;

import cn.xuchunh.campusbbs.ui.activities.ImageActivity;

/**
 * Created by XuChunH on 2015/10/29.
 */
public class WebAppInterface {

    private Context mContext;

    public WebAppInterface(Context Context) {
        this.mContext = Context;
    }

    @JavascriptInterface
    public void loadImage(String url) {
        ImageActivity.launch(mContext, Uri.parse(url));
    }

}
